home *** CD-ROM | disk | FTP | other *** search
- property pTimeout, pDelay, pMouseLoc, pMode, ancestor, pIdle
-
- on beginSprite me
- puppetSound(1, "bg01")
- ancestor = new(script("scroller script"))
- pMouseLoc = point(-100, -100)
- pTimeout = the timer + (60 * 5)
- pMode = #anim
- pIdle = 0
- end
-
- on exitFrame me
- go(the frame)
- end
-
- on idle me
- me.timeoutcheck()
- go(the frame)
- end
-
- on CuePassed whichChannel, cuePointNumber, cuePointName
- num = random(17)
- if num > 9 then
- exit
- end if
- tsound = "fg" & num
- makesound(2, tsound)
- end
-
- on timeoutcheck me
- if pTimeout > the timer then
- if the mouseLoc = pMouseLoc then
- me.theidle()
- cursor(200)
- pIdle = 1
- else
- ancestor.Run(#mouse)
- if pIdle <> 0 then
- sendAllSprites(#animswitch, 0)
- thecursor(#norm)
- pIdle = 0
- end if
- end if
- else
- pTimeout = the timer + (60 * 5)
- pMouseLoc = the mouseLoc
- end if
- end
-
- on theidle me
- if pDelay < the timer then
- case pMode of
- #zoom:
- sendSprite(random(22) + 60, #mouseEnter)
- sendAllSprites(#animswitch, 0)
- pMode = #anim
- pDelay = the timer + (5 * 60)
- otherwise:
- sendAllSprites(#zoom_out)
- sendAllSprites(#animswitch, 1)
- pMode = #zoom
- pDelay = the timer + (6 * 60)
- end case
- else
- case pMode of
- #anim:
- h = sin(the timer / 50.00999999999999801) * 1000.00999999999999091
- ancestor.Run(h)
- #zoom:
- h = #pause
- ancestor.Run(h)
- end case
- end if
- end
-